#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<string.h>
int main()
{
	char x,s[100];
	int flag = 0;
	scanf("%s %c", s, &x);
	int len = strlen(s);
	for (int i = 0; i < len; i++)
	{
		if (s[i] == x)
		{
			flag = 1;
			break;
		}
	}
	for (int i = 0; i < len; i++)
	{
		if (s[i] == x) continue;
		else if (flag==1) printf("%c", s[i]);
	}
	if(flag==0) printf("NotFound");
	return 0;
}